package uutalk.netcloud.talk.base.mqtt.model;

/**
 * ClassName: Connection
 * Desc:
 * Created by zhiw on 2017/3/22.
 */

public class Connection {


    private String host;
    private String port;
    private String clientId;
    private boolean cleanSession;
    private String username;
    private String password;


    public Connection() {
    }

    public Connection(String host, String port, String clientId, boolean cleanSession) {
        this.host = host;
        this.port = port;
        this.clientId = clientId;
        this.cleanSession = cleanSession;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public boolean isCleanSession() {
        return cleanSession;
    }

    public void setCleanSession(boolean cleanSession) {
        this.cleanSession = cleanSession;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getServerURI() {
        return "tcp://"+host + ":" + port;
    }


}
